package SqlDemo;

import java.sql.*;



public class Select extends user{


    public static void main(String[] args) throws SQLException {

            Connection con = getInstace();
            Statement s = con.createStatement();
            ResultSet rs = s.executeQuery("select * from score");
            while(rs.next()){
                System.out.println(rs.getString("sno")+" "+rs.getString("cno")+" "+rs.getString("degree"));
            }
            con.close();
            s.close();
            rs.close();



    }
}
